﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChongJu.ModelManager.HaiSheng
{
    public class RequestModel
    {
        public RequestModel(RequestCodeEnum reqCd, int pageNum = 1, string frmCd = null)
        {
            RequestCd = ((int)reqCd).ToString();
            FrmCd = frmCd;
            PageNum = pageNum;
        }

        /// <summary>
        /// 请求代码
        /// </summary>
        public string RequestCd { get; set; }

        /// <summary>
        /// 烟农编码 
        /// 如果查询所有烟农，则不需要FrmCd参数，
        /// 如果查询具体烟农，则需要带上具体的FrmCd参数
        /// </summary>
        public string FrmCd { get; set; }

        /// <summary>
        /// 查询页索引（从1开始）
        /// </summary>
        public int PageNum { get; set; }
    }
}
